#!/bin/sh

src=$1
dst=$2

if [ ! -d $dst ]; then
	mkdir -p $dst
fi

for pkg in $(ls $src); do
	name="${pkg%%-[0-9]*}"
	echo "info: installing: $name"
	tar -C $dst -xf $src/$pkg
done
